.PHYON:
all:
	@cd ./compile_server;\
	make;\
	cd -;\
	cd ./oj_server;\
	make;\
	cd -;


.PHYON:
output: all
	@mkdir -p ./output/compile_server/temp;\
	mkdir -p ./output/oj_server;\
	cp -rf ./compile_server/temp ./output/compile_server;\
	cp -rf ./compile_server/compile_server ./output/compile_server;\
	cp -rf ./oj_server/oj_server ./output/oj_server;\
	cp -rf ./oj_server/machine.conf ./output/oj_server;\
	cp -rf ./oj_server/include ./output/oj_server;\
	cp -rf ./oj_server/lib ./output/oj_server;\
	cp -rf ./oj_server/question ./output/oj_server;\
	cp -rf ./oj_server/template_html ./output/oj_server;\
	cp -rf ./oj_server/wwwroot ./output/oj_server;


.PHYON:
clean:
	@cd ./compile_server;\
	make clean;\
	cd -;\
	cd ./oj_server;\
	make clean;\
	cd -;\
	rm -rf output;
	
